package reesoft.common.entity;

import java.util.Date;

/**
 * 通用的异步任务执行状态通知类
 *
 * Created by reesoft on 2017-10-16
 */
public class TaskNotification
{
    // 任务类型
    private String taskType;

    // 任务的唯一标识
    private long taskId;

    // 任务的执行状态码，因任务类型而异
    private int taskStatus;

    // 任务的执行时间
    private Date executeTime;

    // 任务执行的结果
    private Result result;

    public TaskNotification()
    {
    }

    public TaskNotification(String taskType, long taskId, int taskStatus)
    {
        this.taskType = taskType;
        this.taskId = taskId;
        this.taskStatus = taskStatus;
    }

    public String getTaskType()
    {
        return taskType;
    }

    public void setTaskType(String taskType)
    {
        this.taskType = taskType;
    }

    public long getTaskId()
    {
        return taskId;
    }

    public void setTaskId(long taskId)
    {
        this.taskId = taskId;
    }

    public int getTaskStatus()
    {
        return taskStatus;
    }

    public void setTaskStatus(int taskStatus)
    {
        this.taskStatus = taskStatus;
    }

    public Date getExecuteTime()
    {
        return executeTime;
    }

    public void setExecuteTime(Date executeTime)
    {
        this.executeTime = executeTime;
    }

    public Result getResult()
    {
        return result;
    }

    public void setResult(Result result)
    {
        this.result = result;
    }
}
